package com.kaili.basic.pojo.dto;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.kaili.basic.pojo.entity.BaseStoreDetailEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(description = "库存明细")
public class BaseReportLossAddDetailDTO extends BaseStoreDetailEntity{
  @ApiModelProperty(value = "主键id",hidden = true)
  @TableId(type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("订单号")
  private String orderNo;

  @ApiModelProperty("产品id")
  private Long productId;

  @ApiModelProperty("重量")
  private Double weight;

  @ApiModelProperty("体积")
  private Double volume;

  @ApiModelProperty("数量")
  private Long amount;

  @ApiModelProperty("托盘数")
  private Long trays;

  @ApiModelProperty("仓库id")
  private Long storeId;

  @ApiModelProperty("原库位id")
  private Long srcLocationId;

  @ApiModelProperty(value = "报损库位id",hidden = true)
  private Long lossLocationId;

  @ApiModelProperty("对应期移库库存id")
  private Long storeStockId;

  @ApiModelProperty("批次")
  private String batch;

  @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss" )
  @ApiModelProperty("过期时间")
  private Date deadTime;
}
